﻿<!--#include file="const.inc"-->
<%
'====================================================================
' 感谢使用晴天3G智能建站系统..
' 作者:梁永强.QQ:766750857
' 官方网址:wap.qt3g.com
' 声明:软件版权归作者所有,没有经过作者本人同意不得非法破解和传播本程序
'====================================================================
%>


<%
dim urls,Page,PageSize
	PageSize=8

	dim rs,sql,i
    	act = Request.QueryString("act")
		id=Request.QueryString("id")
		if not isnumeric(id) then id=1
		if id="" then id=1
		id=clng(id) 
urls=Request.QueryString("urls")
if urls="" then urls="vieinfo.asp?id="&id&""
		if sid<>"Null" then
select case v
case "0"
we0="<br/>"
hr="-------------<br/>"
%>
<card title="阅读内线"><p align="<%=qingtian.px%>">
<%
case "1"
hr=""
zi="<span style=""color:#FF5500"">"
zi0="</span>"
we="<div class=""footer"">"
sou="<div class=""block4"">"
dao="<div class=""navi"">"
we0="</div>"
we2="</div>"
%>
<title>阅读内线</title>
</head>
<body>
<!--#include virtual="/css.inc"-->
<%

End Select

%>		
<%=qingtian.qingsav("300")%><%=dao%><b>==阅读内线==</b><%=we0%><%=hr%>  
		<%
Set Rs = Server.CreateObject("Adodb.Recordset")
if act=1 then
Sql = "select top 1 [id] from [qingtian_info]  where [nid]=(select top 1 id from qingtian_user where sid='"&qingtian.Formatsid(sid)&"') and id="&id&""
			Rs.Open Sql,conn,1,3
			if not (rs.bof and rs.eof)  then
				For i=1 to rs.RecordCount
					If Rs.Eof Then
						exit For
					End If

					rs.delete
					Rs.MoveNext
				Next

			end if
			Rs.close
%><%=sou%>该信件已经删除!<%=we0%><%

else	
		Sql = "select [title],[ok],[tid],[time] from [qingtian_info]  where [nid]=(select top 1 id from qingtian_user where sid='"&qingtian.Formatsid(sid)&"')  and id="&id&""
		Rs.Open Sql,conn,1,1
		if not (rs.bof and rs.eof)  then
		if rs("ok")=1 then
%>
<%=sou%>发到:<a href="spacev.Asp?nid=<%=rs("tid")%>&amp;sid=<%=sidd%>"><%=qingtian.name(rs("tid"))%>(ID:<%=rs("tid")%>)</a><%=we0%><%=we%>
<%=qingtian.ubb(rs("title"))%><%=we0%><%=sou%>[<%=rs("time")%>]<%=we0%>
<%else%>
<%=sou%>草稿:<a href="spacev.Asp?nid=<%=rs("tid")%>&amp;sid=<%=sidd%>"><%=qingtian.name(rs("tid"))%>(ID:<%=rs("tid")%>)</a><%=we0%><%=we%>
<%=qingtian.ubb(rs("title"))%><%=we0%><%=sou%>[<%=rs("time")%>]<%=we0%>
<% end if %>
<%=dao%><a href="vieinfo.asp?act=1&amp;id=<%=id%>&amp;sid=<%=sidd%>&amp;urls=<%=urls%>">删除</a>.<a href="addinfo.asp?eid=1&amp;id=<%=id%>&amp;sid=<%=sidd%>&amp;urls=<%=urls%>">转发</a>.<a href="liaoinfo.asp?id=<%=rs("tid")%>&amp;sid=<%=sidd%>&amp;urls=<%=urls%>">聊天模式</a><%=we0%>
<%
       		else
		%><%=sou%>该信件已经删除，或没有该信件！<%=we0%><%
		end if
		Rs.close
end if
%>
<%=hr%><%=qingtian.qingsav("301")%><%=we%>
<a href="<%=qingtian.backurl(urls)%>">返回来源页</a>|<a href="fainfo.asp?sid=<%=sidd%>">发件箱</a><%=we0%>
<%

		else
Response.Redirect "/login.asp?sid=" & sidd & "url=/user/vieinfo.asp?id="&id&"@@sid="&sidd&"@@urls="&urls

		end if


end Function%>
